public class Frog extends Animal implements IAmphibious{

    public Frog(String name) {
        super(name);
    }
    @Override
    public void eat() {
        System.out.println(this.name+"正在吃虫子");
    }

    @Override
    public void amphibious() {
    System.out.println(this.name+"既会跑也会游泳");
    }

    @Override
    public void run() {
        System.out.println(this.name+"正在跑");
    }

    @Override
    public void swim() {
System.out.println(this.name+"正在游泳");
    }
}
